package view;

import java.awt.dnd.DropTargetDragEvent;
import java.awt.dnd.DropTargetDropEvent;
import java.awt.dnd.DropTargetEvent;
import java.awt.dnd.DropTargetListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JLabel;
import javax.swing.TransferHandler;
import javax.swing.event.MouseInputAdapter;

public class MyJLabel extends JLabel  implements DropTargetListener {

	private int row;
	private int col;
	
	public MyJLabel() {
		
	}

	public MyJLabel(int row, int col) {
		super();
		this.row = row;
		this.col = col;
		
		
	}

	public int getRow() {
		return row;
	}

	public void setRow(int row) {
		this.row = row;
	}

	public int getCol() {
		return col;
	}

	public void setCol(int col) {
		this.col = col;
	}

	@Override
	public void dragEnter(DropTargetDragEvent arg0) {
		System.out.println(this+" Dragged Enter");
		
	}

	@Override
	public void dragExit(DropTargetEvent arg0) {
		System.out.println(this+" Dragged Exit");
		
	}

	@Override
	public void dragOver(DropTargetDragEvent arg0) {
		
			System.out.println(this+" Dragged Over");
		
	}

	@Override
	public void drop(DropTargetDropEvent arg0) {
		System.out.println(this+" Drop");
		
	}

	@Override
	public void dropActionChanged(DropTargetDragEvent arg0) {
		// TODO Auto-generated method stub
		System.out.println(this+" Drop Action Change");
		
	}

	@Override
	public String toString() {
		return "MyJLabel [row=" + row + ", col=" + col + "]";
	}
	
	
}
